package com.duan.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.duan.user.pojo.Address;
import com.duan.user.service.AddressService;
import com.duan.user.mapper.AddressMapper;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author lenovo
* @description 针对表【duan_address】的数据库操作Service实现
* @createDate 2024-08-08 17:33:51
*/
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address>
    implements AddressService{

    @Autowired
    private AddressMapper addressMapper;

    @Override
    public List<Address> selectAll() {
        LambdaQueryWrapper<Address> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Address::getIsDelete,0);
        return addressMapper.selectList(queryWrapper);
    }

    @Override
    public List<Address> selectList(Address address) {
        return Collections.emptyList();
    }

    @Override
    public Integer insert(Address address) {
        return 0;
    }

    @Override
    public Integer delete(String ids) {
        return 0;
    }

    @Override
    public Integer update(Address address) {
        return 0;
    }

    @Override
    public Page<Address> pageAll(Integer page, Integer size) {
        return null;
    }

    @Override
    public Page<Address> pageList(Address address, Integer page, Integer size) {
        return null;
    }
}




